import * as types from '../mutation-types';
import Vue from 'vue';
const state = {
	mallHomeData: {},
	keyboardHeight: 0,
	shareServiceProvider: [],
	vipBanner: {
		coupid_vip_banner: '',
		user_vip_banner: ''
	},
	loginadv: [],
	adv: {}
}

const mutations = {
	[types.STORAGE_CACHE](state, item) {
		if (state.hasOwnProperty(item.key)) {
			state[item.key] = item.value
		}
	},
	[types.CLEAR_STORAGE_CACHE](state) {
		state.mallHomeData = {}
		state.keyboardHeight = 0
	},

}

export default {
	state,
	mutations
}
